┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/lib/dracut/modules.d/45net-lib
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: dhcp-root.sh
#!/usr/bin/sh # This script is sourced, so root should be set. But let's be paranoid [ -z "$root" ] && root=$(getarg root=) if [ -z "$netroot" ]; then for netroot in $(getargs netroot=); do [ "$netroot" = "dhcp" ] && break [ "$netroot" = "dhcp6" ] && break done [ "$netroot" = "dhcp" ] || [ "$netroot" = "dhcp6" ] || unset netroot fi if [ "$root" = "dhcp" ] || [ "$root" = "dhcp6" ] || [ "$netroot" = "dhcp" ] || [ "$netroot" = "dhcp6" ]; then # Tell ip= checker that we need dhcp # shellcheck disable=SC2034 NEEDDHCP="1" # Done, all good! # shellcheck disable=SC2034 rootok=1 if [ "$netroot" != "dhcp" ] && [ "$netroot" != "dhcp6" ]; then netroot=$root fi # Shut up init error check [ -z "$root" ] && root="dhcp" # shellcheck disable=SC2016 echo '[ -d $NEWROOT/proc -o -e /dev/root ]' > "$hookdir"/initqueue/finished/dhcp.sh fi
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 dhcp-root.sh
SH
918 B
2025-05-01 10:52
EDIT
📄 ifname-genrules.sh
SH
1.1 KB
2025-05-01 10:52
EDIT
📄 module-setup.sh
SH
449 B
2025-05-01 10:52
EDIT
📄 net-lib.sh
SH
26.2 KB
2025-05-01 10:52
EDIT
📄 netroot.sh
SH
2.8 KB
2025-05-01 10:52
EDIT